public class Week {
    public static String getWeekDay(int i){
        String weeks[]={"星期一","星期二","星期三","星期四","星期五","星期六","星期日",};
        if (1<i && i<=7){
            return weeks[i-1];
        }else {
return "非法数值";
        }
    }
}
